﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace TCHSHue.BLL
{
    public static class StringUtility
    {
        public static string Truncated(this string str, int length)
        {
            if (string.IsNullOrEmpty(str))
                return "";
            else
                if (str.Length > length)
                    return str.Substring(0, length) + "...";
                else
                    return str;
        }
    }
}